package com.rss_reader.data;

public class RSSItem 
{
	public static final String TITLE="title";
	public static final String PUBDATE="pubdate";
	public static final String IMAGE_PATH = "image_path";
	public static final String MEDIA = "media";
	public static final String DESCRIPTION = "description";
	public static final String CATEGORY = "category";
	private String title = null;
	private String description = null;
	private String link = null;
	private String category = null;
	private String pubdate = null;
	private String media = null;	
	private String image_path = null;
	private String content = null;
	
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getMedia() {
		return media;
	}
	public void setMedia(String media) {
		this.media = media;
	}
	public String getImage_path() {
		return image_path;
	}
	public void setImage_path(String image_path) {
		this.image_path = image_path;
	}
	public RSSItem()
	{
	}
	public void setTitle(String title)
	{
		this.title = title;
	}
	public	void setDescription(String description)
	{
		this.description = description;
	}
	public	void setLink(String link)
	{
		this.link = link;
	}
	public	void setCategory(String category)
	{
		this.category = category;
	}
	public	void setPubDate(String pubdate)
	{
		this.pubdate = pubdate;
	}
	public String getTitle()
	{
		return title;
	}
	public	String getDescription()
	{
		return description;
	}
	public	String getLink()
	{
		return link;
	}
	public String getCategory()
	{
		return category;
	}
	public String getPubDate()
	{
		return pubdate;
	}
	public String toString()
	{
		if (title.length() > 20)
		{
			return title.substring(0, 42) + "...";
		}
		return title;
	}
}
